  /**
   * Generate time : 2016-05-09 9:24:37
   * Version : 1.0.1.V20070717
   */
package com.baosight.scaq.aq.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIRiskInfo 
 * table comment : 隐患信息表 
 */
public class AQCIRiskInfo extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdName = " ";		/* 矿井名称*/
	private String fdDepartment=" ";    /*部门*/
	private String fdRiskType = " ";		/* 隐患分类*/
	private String fdRiskLevel = " ";		/* 隐患级别*/
	private String fdRiskStatus = " ";		/* 隐患状态*/
	private BigDecimal fdRiskNum = new BigDecimal("0");		/* 隐患数量*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	
	private BigDecimal dayNewRisk = new BigDecimal("0");		/* 日发现隐患数量*/
	private BigDecimal dayResolveRisk = new BigDecimal("0");		/* 日整改隐患数量*/
	private BigDecimal dayCheckRisk = new BigDecimal("0");		/* 日复查隐患数量*/
	private BigDecimal monthNewRisk = new BigDecimal("0");		/* 月发现隐患数量*/
	private BigDecimal monthResolveRisk = new BigDecimal("0");		/* 月整改隐患数量*/
	private BigDecimal monthCheckRisk = new BigDecimal("0");		/* 月复查隐患数量*/
	private BigDecimal yearNewRisk = new BigDecimal("0");		/* 年发现隐患数量*/
	private BigDecimal yearResolveRisk = new BigDecimal("0");		/* 年整改隐患数量*/
	private BigDecimal yearCheckRisk = new BigDecimal("0");		/* 年复查隐患数量*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("部门名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患分类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskLevel");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患级别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskStatus");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("隐患状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRiskNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dayNewRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dayResolveRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("dayCheckRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("monthNewRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("monthResolveRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("monthCheckRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("yearNewRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("yearResolveRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("yearCheckRisk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(10);
	eiColumn.setDescName("隐患数量");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public AQCIRiskInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdName - 矿井名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿井名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	/**
	 * get the fdDepartment - 部门名称
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 部门名称
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	
	/**
	 * get the fdRiskType - 隐患分类
	 * @return the fdRiskType
	 */
	public String getFdRiskType() {
		return this.fdRiskType;
	}
	
	/**
	 * set the fdRiskType - 隐患分类
	 */
	public void setFdRiskType(String fdRiskType) {
		this.fdRiskType = fdRiskType;
	}
	/**
	 * get the fdRiskLevel - 隐患级别
	 * @return the fdRiskLevel
	 */
	public String getFdRiskLevel() {
		return this.fdRiskLevel;
	}
	
	/**
	 * set the fdRiskLevel - 隐患级别
	 */
	public void setFdRiskLevel(String fdRiskLevel) {
		this.fdRiskLevel = fdRiskLevel;
	}
	/**
	 * get the fdRiskStatus - 隐患状态
	 * @return the fdRiskStatus
	 */
	public String getFdRiskStatus() {
		return this.fdRiskStatus;
	}
	
	/**
	 * set the fdRiskStatus - 隐患状态
	 */
	public void setFdRiskStatus(String fdRiskStatus) {
		this.fdRiskStatus = fdRiskStatus;
	}
	/**
	 * get the fdRiskNum - 隐患数量
	 * @return the fdRiskNum
	 */
	public BigDecimal getFdRiskNum() {
		return this.fdRiskNum;
	}
	
	/**
	 * set the fdRiskNum - 隐患数量
	 */
	public void setFdRiskNum(BigDecimal fdRiskNum) {
		this.fdRiskNum = fdRiskNum;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	
	/**
	 * get the dayNewRisk - 隐患数量
	 * @return the dayNewRisk
	 */
	public BigDecimal getDayNewRisk() {
		return this.dayNewRisk;
	}
	
	/**
	 * set the dayNewRisk - 隐患数量
	 */
	public void setDayNewRisk(BigDecimal dayNewRisk) {
		this.dayNewRisk = dayNewRisk;
	}
	
	/**
	 * get the dayResolveRisk - 隐患数量
	 * @return the dayResolveRisk
	 */
	public BigDecimal getDayResolveRisk() {
		return this.dayResolveRisk;
	}
	
	/**
	 * set the dayResolveRisk - 隐患数量
	 */
	public void setDayResolveRisk(BigDecimal dayResolveRisk) {
		this.dayResolveRisk = dayResolveRisk;
	}
	
	/**
	 * get the dayCheckRisk - 隐患数量
	 * @return the dayCheckRisk
	 */
	public BigDecimal getDayCheckRisk() {
		return this.dayCheckRisk;
	}
	
	/**
	 * set the dayCheckRisk - 隐患数量
	 */
	public void setDayCheckRisk(BigDecimal dayCheckRisk) {
		this.dayCheckRisk = dayCheckRisk;
	}
	
	/**
	 * get the monthNewRisk - 隐患数量
	 * @return the monthNewRisk
	 */
	public BigDecimal getMonthNewRisk() {
		return this.monthNewRisk;
	}
	
	/**
	 * set the monthNewRisk - 隐患数量
	 */
	public void setMonthNewRisk(BigDecimal monthNewRisk) {
		this.monthNewRisk = monthNewRisk;
	}
	
	/**
	 * get the monthResolveRisk - 隐患数量
	 * @return the monthResolveRisk
	 */
	public BigDecimal getMonthResolveRisk() {
		return this.monthResolveRisk;
	}
	
	/**
	 * set the monthResolveRisk - 隐患数量
	 */
	public void setMonthResolveRisk(BigDecimal monthResolveRisk) {
		this.monthResolveRisk = monthResolveRisk;
	}
	
	/**
	 * get the monthCheckRisk - 隐患数量
	 * @return the monthCheckRisk
	 */
	public BigDecimal getMonthCheckRisk() {
		return this.monthCheckRisk;
	}
	
	/**
	 * set the monthCheckRisk - 隐患数量
	 */
	public void setMonthCheckRisk(BigDecimal monthCheckRisk) {
		this.monthCheckRisk = monthCheckRisk;
	}
	
	/**
	 * get the yearNewRisk - 隐患数量
	 * @return the yearNewRisk
	 */
	public BigDecimal getYearNewRisk() {
		return this.yearNewRisk;
	}
	
	/**
	 * set the yearNewRisk - 隐患数量
	 */
	public void setYearNewRisk(BigDecimal yearNewRisk) {
		this.yearNewRisk = yearNewRisk;
	}
	
	/**
	 * get the yearResolveRisk - 隐患数量
	 * @return the yearResolveRisk
	 */
	public BigDecimal getYearResolveRisk() {
		return this.yearResolveRisk;
	}
	
	/**
	 * set the yearResolveRisk - 隐患数量
	 */
	public void setYearResolveRisk(BigDecimal yearResolveRisk) {
		this.yearResolveRisk = yearResolveRisk;
	}
	
	/**
	 * get the yearCheckRisk - 隐患数量
	 * @return the yearCheckRisk
	 */
	public BigDecimal getYearCheckRisk() {
		return this.yearCheckRisk;
	}
	
	/**
	 * set the yearCheckRisk - 隐患数量
	 */
	public void setYearCheckRisk(BigDecimal yearCheckRisk) {
		this.yearCheckRisk = yearCheckRisk;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdRiskType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskType")), fdRiskType));
		setFdRiskLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskLevel")), fdRiskLevel));
		setFdRiskStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskStatus")), fdRiskStatus));
		setFdRiskNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdRiskNum")), fdRiskNum));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		
		setDayNewRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("dayNewRisk")), dayNewRisk));
		setDayResolveRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("dayResolveRisk")), dayResolveRisk));
		setDayCheckRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("dayCheckRisk")), dayCheckRisk));
		setMonthNewRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("monthNewRisk")), monthNewRisk));
		setMonthResolveRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("monthResolveRisk")), monthResolveRisk));
		setMonthCheckRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("monthCheckRisk")), monthCheckRisk));
		setYearNewRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("yearNewRisk")), yearNewRisk));
		setYearResolveRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("yearResolveRisk")), yearResolveRisk));
		setYearCheckRisk(NumberUtils.toBigDecimal(StringUtils.toString(map.get("yearCheckRisk")), yearCheckRisk));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
			map.put("fdRiskType",StringUtils.toString(fdRiskType, eiMetadata.getMeta("fdRiskType")));	
			map.put("fdRiskLevel",StringUtils.toString(fdRiskLevel, eiMetadata.getMeta("fdRiskLevel")));	
			map.put("fdRiskStatus",StringUtils.toString(fdRiskStatus, eiMetadata.getMeta("fdRiskStatus")));	
			map.put("fdRiskNum",StringUtils.toString(fdRiskNum, eiMetadata.getMeta("fdRiskNum")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			
			map.put("dayNewRisk",StringUtils.toString(dayNewRisk, eiMetadata.getMeta("dayNewRisk")));
			map.put("dayResolveRisk",StringUtils.toString(dayResolveRisk, eiMetadata.getMeta("dayResolveRisk")));
			map.put("dayCheckRisk",StringUtils.toString(dayCheckRisk, eiMetadata.getMeta("dayCheckRisk")));
			map.put("monthNewRisk",StringUtils.toString(monthNewRisk, eiMetadata.getMeta("monthNewRisk")));
			map.put("monthResolveRisk",StringUtils.toString(monthResolveRisk, eiMetadata.getMeta("monthResolveRisk")));
			map.put("monthCheckRisk",StringUtils.toString(monthCheckRisk, eiMetadata.getMeta("monthCheckRisk")));
			map.put("yearNewRisk",StringUtils.toString(yearNewRisk, eiMetadata.getMeta("yearNewRisk")));
			map.put("yearResolveRisk",StringUtils.toString(yearResolveRisk, eiMetadata.getMeta("yearResolveRisk")));
			map.put("yearCheckRisk",StringUtils.toString(yearCheckRisk, eiMetadata.getMeta("yearCheckRisk")));
			
		return map;
	
	}
}